package com.elmcode.study.design.pro05_template;

public abstract class AbstractTemplate {

    //模板方法，定义算法的骨架
    public final void templateMethod(){
        step1();
        step2();
        step3();
    }

    protected abstract void step3();

    protected abstract void step2();

    protected abstract void step1();

}
